package com.dz.xjd.ui.model;


import com.dz.xjd.api.ApiManage;
import com.dz.xjd.base.baserx.RxHelper;
import com.dz.xjd.ui.contract.RegisterContract;
import rx.Observable;

public class RegisterModel implements RegisterContract.Model{


    @Override
    public Observable<String> getRegisterData(String header, String params) {
        return ApiManage.getInstence().getApiService().register(header,params)
                .compose(RxHelper.<String>handleResult());
    }

    @Override
    public Observable<String> sendValidate(String header, String params) {
        return ApiManage.getInstence().getApiService().getMsm(header,params);
    }
}
